package com.mk.webservice.police;

import javax.jws.WebService;

import com.alibaba.fastjson.JSONObject;

@WebService(serviceName="PersonCheckService")
public class PersonCheckService {
	
	/**
	 * 校验
	 * @param idCard
	 * @return
	 */
	public String checkByNo(String idCard) {
		//打印参数；
		System.out.println("号码... "+idCard);
		
		JSONObject res = new JSONObject();
		if(idCard==null || "".equals(idCard)) {
			res.put("code", 0);
			res.put("msg", "号码为空！");
			return  res.toJSONString();
		}
		
		//todo
		res.put("code", 1);
		res.put("msg", idCard);
		res.put("status", "正常");
		return res.toJSONString();
	}
}
